package com.doit.day01;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.CellUtil;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.*;

import java.nio.charset.StandardCharsets;

public class _03_delete数据 {
    public static void main(String[] args) throws Exception {
        Configuration conf = HBaseConfiguration.create();
        conf.set("hbase.zookeeper.quorum","linux01:2181");

        Connection conn = ConnectionFactory.createConnection(conf);

        Table table = conn.getTable(TableName.valueOf("doit:student"));

        Delete delete = new Delete("123".getBytes(StandardCharsets.UTF_8));
//        delete.addColumn("f2".getBytes(StandardCharsets.UTF_8),"name".getBytes(StandardCharsets.UTF_8));

        table.delete(delete);


    }
}
